package com.overseasShopping.Base.DAO;

import java.util.List;

import com.overseasShopping.pojo.Goods;
import com.overseasShopping.util.PageBean;

public interface GoodsDAO extends BaseDAO<Goods> {

	public List<Goods> getAll();

	public List<Goods> getGoodsByListType(String listType);

	public void getGoodsByListTypePage(String listType, PageBean<Goods> pageBean);
	public void getGoodsByListTypePage(String listType,String name, PageBean<Goods> pageBean);

	public void getGoodsByListTypePage(String listType, int type,
			PageBean<Goods> pageBean);
	public void getGoodsByListTypePage(String listType, int type,String name,
			PageBean<Goods> pageBean);

	public List<Goods> getGoodsByType(int type);
	
    //1
	public void getGoodsByPriceUp(String listType,int type,String name,PageBean<Goods> pageBean);
	public void getGoodsByPriceUp(String listType,int type,PageBean<Goods> pageBean);
	public void getGoodsByPriceUp(String listType,PageBean<Goods> pageBean);
	public void getGoodsByPriceUp(String listType,String name,PageBean<Goods> pageBean);
    //2
	public void getGoodsByPriceDwon(String listType,int type,String name,PageBean<Goods> pageBean);
	public void getGoodsByPriceDwon(String listType,int type,PageBean<Goods> pageBean);
	public void getGoodsByPriceDwon(String listType,PageBean<Goods> pageBean);
	public void getGoodsByPriceDwon(String listType,String name,PageBean<Goods> pageBean);
    //3
	public void getRecentlyGoods(String listType,int type,String name ,PageBean<Goods> pageBean);
	public void getRecentlyGoods(String listType,int type,PageBean<Goods> pageBean);
	public void getRecentlyGoods(String listType,PageBean<Goods> pageBean);
	public void getRecentlyGoods(String listType,String name,PageBean<Goods> pageBean);


	
	public List<Goods> getGoodByName(String goodName);
	public Goods getGoodBygoodId(String goodId);

	public void addGoods(Goods good);
	
	public List<Goods> getHotGoods();
   
	public List<Goods> getGoodByUserId(String userId);
	public List<Goods> getGoodByUserId(String userId,String listType);
	public List<Goods> getGoodByUserId(String userId,String listType,int state);
}
